av-pointer}
\xmlsetsetup{#1}{nav-pointer/ext-link}{xml:nav-pointer-link}
\stopxmlsetups
\xmlregisterdocumentsetup{test}{xml:test}
% Index
\startxmlsetups xml:book-back
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:index
\startsectionlevel[title={\xmlfilter{
\startsectionlevel[title={\xmlfilter{#1}{/index-title-group/title/command(xml:index-title)}},]
\xmlflush{#1}
\stopsectionlevel
\stopxmlsetups
\startxmlsetups xml:index-title
\xmlflush{#1}
\stopxmlsetups
\definedescription[indexentry]
[alternative=top
\startsectionlevel[title={\xmlfilter{#1}{/index-title-group/title/command(xml:index-title)}},]
\xmlflush{#1}
\stopsectionlevel
\stopxmlsetups
\startxmlsetups xml:index-title
\xmlflush{#1}
\stopxmlsetups
\definedescription[indexentry]
[alternative
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:index
\startsectionlevel[title={\xmlfilter{#1}{/index-title-group/title/command(xml:index-title)}},]
\xmlflush{#1}
\stopsectionlevel
\stopxmlsetups
\startxmlsetups xml:index-title
\xmlflush{#1
ible)
>
> Someone who maintains an export programme for ConTeXt uses
> sectionlevels.
>
> You get the incremental subsections and subsubsection like this.
>
> \startsectionlevel
> \startsectionlevel
> \startsectionlevel
> \stopsectionlevel
> \stopsecti
amme for ConTeXt uses
> sectionlevels.
>
> You get the incremental subsections and subsubsection like this.
>
> \startsectionlevel
> \startsectionlevel
> \startsectionlevel
> \stopsectionlevel
> \stopsectionlevel
> \stopsectionlevel
>
> This makes it possible to ignore t
subsubsection like this.
\startsectionlevel
\startsectionlevel
\startsectionlevel
\stopsectionlevel
\stopsectionlevel
\stopsectionlevel
This makes it possible to ignore the part-chapter-section naming
convention and be more flexible. You can leave it to the style files to
decide which level
an unnumbered heading. How can I get that?
Browsing through the source I came across this:
https://source.contextgarden.net/tex/context/base/mkiv/strc-lev.mkvi?search=startstructurelevel#l65
So, it seems that \startstructurelevel is just an alias for \startsectionlevel.
Right?
Unnumbered headings can
rowsing through the source I came across this:
> https://source.contextgarden.net/tex/context/base/mkiv/strc-lev.mkvi?search=startstructurelevel#l65
>
> So, it seems that \startstructurelevel is just an alias for
> \startsectionlevel. Right?
> Unnumbered headings can be produced
. How can I get
that?
Browsing through the source I came across this:
https://source.contextgarden.net/tex/context/base/mkiv/strc-lev.mkvi?search=startstructurelevel#l65
So, it seems that \startstructurelevel is just an alias for
\startsectionlevel. Right?
Unnumbered headings can be produced
>
> sense to check all these mappings onto context, for instance I think
> that pandoc uses \section and such while in fact it should use
> \startsectionlevel[title={}] ... \stopsectionlevel so that one can embed
> documents in other documents.
>
https://github.com/jgm/pandoc
it could mean it
could be Pandoc's one, but not sure?
I don't know as I never use these coding methods. But it might make
sense to check all these mappings onto context, for instance I think
that pandoc uses \section and such while in fact it should use
\startsectionlevel[title
look into lang-txt.lua
As a related side-request: how can I fix expansion in cases like this:
\startsectionlevel[title=\labeltext{test}] ... this causes the bookmark
to read "test" instead of "Something". \expandafter\startsectionlevel...
didn't cut it.
Hello,
if I define a labeltext via \setuplabeltext[en][test=Something], how can
I access that value via lua?
(context.labeltext obviously prints the content, but doesn't allow me to
use it in lua).
As a related side-request: how can I fix expansion in cases like this:
\startsectionlevel
On 8/8/2016 5:34 PM, Procházka Lukáš Ing. wrote:
Hello,
I'm getting weird output with \startsectionlevel - its parameters are
flushed into page.
I copied a sample from
http://source.contextgarden.net/tex/context/base/strc-lev.mkvi?search=dodo
and I compiled it with:
"
This is L
Hello,
I'm getting weird output with \startsectionlevel - its parameters are flushed
into page.
I copied a sample from
http://source.contextgarden.net/tex/context/base/strc-lev.mkvi?search=dodo
and I compiled it with:
"
This is LuaTeX, Version 0.98.0 (TeX Live 2016/W32TeX)
s
ntext@ntg.nl>
Datum: 14.03.2016 09:05
Předmět: Re: [NTG-context] Are nested sections possible?
Hello,
one more thing:
It would be nice to allow mixing:
- \section like commands (or \startsection ... \stopsection)
- AND \startsectionlevel ... \stopsectionlevel.
The main problem is that one may NE
dent. Hmm, how to get this?
That's actually the default behaviour when you enable indenting.
Example:
\setupindenting [yes, 1em]
\starttext
\startsectionlevel [title=Foo]
\input knuth
\startsectionlevel[title=Bar]
\input knuth
\stopsectionlevel
\stopsectionlevel
\stoptext
If
On Tue, 22 Mar 2016 14:53:05 +0100, Hans Hagen <pra...@wxs.nl> wrote:
>
> On 3/22/2016 9:19 AM, Christoph Reller wrote:
> > \setuptagging[state=start]
> > \starttext
> >
> >\startsectionlevel[title=Chapter]
> > Text.
> > \startit
On 3/22/2016 9:19 AM, Christoph Reller wrote:
\setuptagging[state=start]
\starttext
\startsectionlevel[title=Chapter]
Text.
\startitemize[columns]
\item A
\item B
\stopitemize
\startitemize
\item A
\item B
\stopitemize
More Text
te=start]
\starttext
\startsectionlevel[title=Chapter]
Text.
\startitemize[columns]
\item A
\item B
\stopitemize
\startitemize
\item A
\item B
\stopitemize
More Text.
\stopsec
Indeed, Hans, it would be nice to be able to nest sectionlevels within
a chapter...section... scheme (which is NOT depreciated, although
antiquated).
Currently, \startsectionlevel will by default start a chapter. One
would like it to start a section if located within a chapter, a
subsection
Hello,
one more thing:
It would be nice to allow mixing:
- \section like commands (or \startsection ... \stopsection)
- AND \startsectionlevel ... \stopsectionlevel.
The main problem is that one may NEED to mix:
- (ancient) source files which use \section (deprecated) style
- with more
You probably want automatic levels.
Take a look at strc-lev.mkvi.
\startsectionlevel[title=outer]
\startsectionlevel[title=inner]
\startsectionlevel[title=yet another]
\stopsectionlevel
\stopsectionlevel
\stopsectionlevel
If you need more levels than the default (which ranges from chapter
or
\startsubsubsection …
You’re looking for the \startsectionlevel command.
%\definesectionlevels[default][part,chapter,section,subsection]
\starttext
\completecontent[criterium=all]
\startsectionlevel[title=Colors,reference=colors]
\startsectionlevel[title=Black,reference=black]
black
Quoting from the thread Adaptive section structuring of September
2012:
%\definesectionlevels[default][section,subsection,subsubsection]
\definesectionlevels[mine][title,subject,subsubject]
\starttext
\startsectionlevel [title=Alpha]
\startsectionlevel [title=Beta
][title,subject,subsubject,subsubsubject]
\setuphead[chapter][color=red]
\setuphead[section][color=green]
\setuphead[subsection][color=blue]
\define\PlaceList
{\startsectionlevel[extra][title=List]
%
\stopsectionlevel}
\starttext
\startsectionlevel[title=Chapter 1]
\PlaceList
and normal section command. When you want a \section
for the first level change the level settings with
\definesectionlevels
[default]
[section,
subsection,
subsubsection,
subsubsubsection,
subsubsubsubsection]
and use
\starttext
\startsectionlevel[title=Section]
\startsectionlevel[title
instead of the number. In this case no error marker is
printed and AFAIK not even a hint in the log file. The correct way
is to use \about instead of \in. Here's an example:
\setuphead [section] [number=no]
\starttext
\startsectionlevel [title=Alpha]
See section \in[invalid]. \par %% prints ??
See
, they need to be references
to the name instead of the number. In this case no error marker is
printed and AFAIK not even a hint in the log file. The correct way
is to use \about instead of \in. Here's an example:
\setuphead [section] [number=no]
\starttext
\startsectionlevel [title=Alpha]
See
but they are helpful when you want endnotes end the end of each chapter
etc.
When you have a simple structure in your document you can use \startsectionlevel
instead of \startchapter, \startsection etc. for your headings because the
command
switches always to the next heading (chapter - section - subsection
either sectionlevel or
structurelevel?
I would go with \startsectionlevel which is the new name for the command but
the old name \startstructurelevel can be also used.
Wolfgang
___
If your question is of interest
\stopstructurelevel
\stoptext
Change this in strc-lev.mkvi:
\unexpanded\def\strc_levels_start[#category]%
{\doifassignmentelse{#category}
-{\ctxcommand{startautolevel(\v!default)}[#category]}
-{\ctxcommand{startautolevel(#category)}}}
+{\ctxcommand{startsectionlevel(\v!default
33 matches
Mail list logo